package com.sqsf.service.impl;

/**
 * @program: IDEA
 * @description: Project
 * @author: liuhao
 * @create: 2025/6/18 17:15
 */

import com.sqsf.javabean.User;
import com.sqsf.mapper.UserMapper;
import com.sqsf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> selectAllUsers() {
        return userMapper.selectAllUsers();
    }

    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }
}